﻿using Base.Data.Entity.Base;
using Common.Infrastructure;
using Common.Models.Base;
using System;
using System.Collections.Generic;

namespace Base.Data.Entity
{
    [ModelServiceCode("Base")]
    public class m_user_certificate : ModelBase
    {
        public string user_id { get; set; }

        public string certificate_id { get; set; }

        /// <summary>
        /// 证书生效日期
        /// </summary>
        public DateTime expire_from { get; set; }

        /// <summary>
        /// 证书失效日期
        /// </summary>
        public DateTime expire_to { get; set; }

        /// <summary>
        /// 证书获取日期
        /// </summary>
        public DateTime receive_time { get; set; }

        /// <summary>
        /// 持有期限（月）
        /// </summary>
        public int hold_month { get; set; }

        /// <summary>
        /// hr修改时间
        /// </summary>
        public DateTime hr_modify_time { get; set; }

        /// <summary>
        /// 获取方式
        /// </summary>
        public string get_type { get; set; }

        [EntityFieldLength(30)]
        public string code { get; set; }


        [EntityFieldLength(60)]
        public string name { get; set; }

        /// <summary>
        /// 发证机构
        /// </summary>
        [EntityFieldLength(100)]
        public string agency { get; set; }

        [ModelFieldForeignId("user_id")]
        public m_user nav_user{ get; set; }

        [ModelFieldForeignId("certificate_id")]
        public m_certificate_type nav_certificate_type { get; set; }
    }
}
